/*
 * Copyright 2025 arisgo@163.com
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package com.arisgo.cloud.auth.sys.entity;

import com.arisgo.cloud.web.model.NumberIdWithTime;
import com.mybatisflex.annotation.Table;

import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 部门表
 *
 * @author Arisgo
 * @since 2024-06-14
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Table("auth_dept")
public class Dept extends NumberIdWithTime {

    /**
    * 租户ID
    */
    private String tenantId;
    /**
    * 父主键
    */
    private Long parentId;
    /**
    * 祖级列表
    */
    private String ancestors;
    /**
    * 部门名
    */
    private String deptName;
    /**
    * 部门全称
    */
    private String fullName;
    /**
    * 排序
    */
    private Integer sort;
    /**
    * 备注
    */
    private String remark;

    public static final String TENANT_ID = "tenant_id";
    public static final String PARENT_ID = "parent_id";
    public static final String ANCESTORS = "ancestors";
    public static final String DEPT_NAME = "dept_name";
    public static final String FULL_NAME = "full_name";
    public static final String SORT = "sort";
    public static final String REMARK = "remark";
}
